<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
	<script type="text/javascript" src="common/lib/jquery-1.9.0.min.js"></script>
	<script type="text/javascript" src="common/js/sccl.js"></script>
</head>
<body>
	<form action="searchLoginInfo.action" method="POST" >
		<label>User Name</label>
		<input name="user_name" type="text" value="${sessionScope.user_name}"/>
		<label>Status</label>
		<input name="status" type="text" value="${sessionScope.status}">
		<label>Begain</label>
		<input name="begainDate" type="datetime" value="${sessionScope.begain_date}"/>
		<label>End</label>
		<input name="endDate" type="datetime" value="${sessionScope.end_date}">
		<input type="submit" name="submit" />
	</form>
	
	<c:if test="${!empty lgoinInfo}">
		<c:forEach items="${lgoinInfo}" var="loginLog">
			<div>
				<tr>
					<td>${loginLog.login_id}</td>
					<td>${loginLog.user_name}</td>
					<td>${loginLog.login_IP}</td>
					<td>${loginLog.status}</td>
					<td><fmt:formatDate value="${loginLog.login_date}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td>${loginLog.info}</td>
				</tr>
			</div>
		</c:forEach>
	</c:if>
	
	<a href="searchLoginInfo.action?cur=1">首页</a>
	<a href="searchLoginInfo.action?cur=${sessionScope.cur-1}">上一页</a>
	<a href="searchLoginInfo.action?cur=${sessionScope.cur+1}">下一页</a>
	<a href="searchLoginInfo.action?cur=${sessionScope.pageNumber}">尾页</a>
	<font>当前第${sessionScope.cur}/${sessionScope.pageNumber}</font>
</body>
</html>